package com.iot.ic.tcp.model;

import com.iot.ic.model.Location;
import io.netty.channel.ChannelHandlerContext;

import java.util.List;

public class MsgRequest {

    private byte[] message;//原信息

    private boolean checked;//是否通过校验

    private List<List<Object>> dataList;//数据包链表

    private ChannelHandlerContext ctx;//通道处理环境

    private byte checkResult;//上传结果（0： 成功， 1： 校验和失败， 2： 其它原因失败， 其它值保留）

    private List<Location> locations;

    private String deviceNo;

    public ChannelHandlerContext getCtx() {
        return ctx;
    }

    public void setCtx(ChannelHandlerContext ctx) {
        this.ctx = ctx;
    }

    public boolean getChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public byte[] getMessage() {
        return message;
    }

    public void setMessage(byte[] message) {
        this.message = message;
    }

    public byte getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(byte checkResult) {
        this.checkResult = checkResult;
    }

    public boolean isChecked() {
        return checked;
    }

    public List<List<Object>> getDataList() {
        return dataList;
    }

    public void setDataList(List<List<Object>> dataList) {
        this.dataList = dataList;
    }

    public List<Location> getLocations() {
        return locations;
    }

    public void setLocations(List<Location> locations) {
        this.locations = locations;
    }

	public String getDeviceNo() {
		return deviceNo;
	}

	public void setDeviceNo(String deviceNo) {
		this.deviceNo = deviceNo;
	}
    
    

}
